package com.generator.statics.manufacturerPurchaseStatics.service;

import com.generator.statics.manufacturerPurchaseStatics.pojo.CPurchase1;
import com.generator.statics.manufacturerPurchaseStatics.pojo.CPurchaseCon1;
import com.generator.statics.manufacturerPurchaseStatics.pojo.City1;
import com.generator.statics.manufacturerPurchaseStatics.pojo.Province1;
import com.generator.util.PageModel;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 88168
 * @since 2022-10-01
 */

public interface PurchaseService {

    // 查询所有厂商采购记录
    public List<CPurchaseCon1> getPurchaseListByCondition(CPurchase1 purchase);

    // 查询所有厂商采购记录（分页）
    public PageModel<CPurchaseCon1> getPurchaseListByCondition(CPurchase1 purchase, PageModel<CPurchaseCon1> pageModel);

    // 查询单个订单的信息
    public List<CPurchaseCon1> onePurchase(CPurchaseCon1 conn);

    //    厂商采购记录分类查询
    public List<CPurchase1> classQueryPurchaseListByCondition(CPurchaseCon1 conn);

    //    厂商采购记录分类查询（分页）
    public PageModel<CPurchase1> classQueryPurchaseListByCondition(CPurchaseCon1 conn, PageModel<CPurchase1> pageModel);

    // 查询省份
    public String queryProvince(Province1 province);

    // 查询市
    public String queryCity(City1 city1);

    // 查询单个厂商详细的采购记录
    public List<CPurchaseCon1> oneDetailedPurchase(CPurchaseCon1 conn);

    // 查询单个厂商详细的采购记录下面部分
    public CPurchaseCon1 oneDetailedPurchaseDown(CPurchaseCon1 conn);

}
